package design.patterns.behavioral.state;

/**
 * @author gjx
 * @version v1.0
 * @Description
 * @date 2019/4/10 14:43
 */
public abstract class HeroState {
    protected Hero hero;

    public void setHero(Hero hero) {
        this.hero = hero;
    }

   abstract void run();//行走
   abstract void attack();//攻击
   abstract void frozen();//冰冻状态

}
